package com.njtoyo.taxi.admin.rest.wrapper.marketing.seckill;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.entity.ActivityPrized;
import com.njtoyo.taxi.admin.mapper.master.enums.ActivityPrizedCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
@ApiModel("秒杀列表查询")
public class SeckillListWrapper extends Page<ActivityPrized> {

    public SeckillListWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty("活动名称")
    private String name;

    @ApiModelProperty("是否下线")
    private Boolean isOfflineUpdate;

    @ApiModelProperty("活动类型")
    private ActivityPrizedCategory category;
}
